package com.kuson.springcloud.myHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.kuson.springcloud.entities.CommonResult;

/**
 * 用户自定义方法错误的类型
 */
public class CustomerBlockHandler {

    public static CommonResult handleException(BlockException exception) {
        return new CommonResult(2020, "自定义限流处理信息....CustomerBlockHandler---1");

    }
    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult(2020, "自定义限流处理信息....CustomerBlockHandler----2");

    }

}
